#ifndef __SERVERHANDLER_H__
#define __SERVERHANDLER_H__

#if _MSC_VER > 1000
# pragma once
#endif

#include "auto_vector.h"
#include "HandlerBase.h"
#include "SyncLock.h"

struct ServerHandler : public HandlerBase
{
	ServerHandler(const char* bucket, int affinity, int serverTimeout);

	void DoScan();
	bool Sync();

	int m_serverTimeout;
	auto_vector<SSyncLock> m_clientLocks;
	auto_vector<SSyncLock> m_srvLocks;
	CTimeValue m_lastScan;
};

#endif // __SERVERHANDLER_H__
